﻿using HardcoreGame.Common.Players;
using Terraria;
using Terraria.ModLoader;

namespace HardcoreGame.Content.Buffs
{
    public class RefreshOneself : ModBuff
    {
        public override void SetStaticDefaults()
        {
            Main.debuff[Type] = false;
            Main.buffNoSave[Type] = false;
        }
        public override void Update(Player player, ref int buffIndex)
        {
            if (player.GetModPlayer<SleepPlayer>().SleepTimer > 0)
            {
                player.GetModPlayer<SleepPlayer>().SleepTimer = 0;
            }
        }
    }
}
